﻿<UserControl x:Class="CoderJoe.WoW.GearManager.Views.CharacterView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:gm="clr-namespace:CoderJoe.WoW.GearManager.Views">
	<Grid Loaded="Grid_Loaded">
		<Grid.RowDefinitions>
            <RowDefinition Height="65" />
            <RowDefinition Height="65"/>
            <RowDefinition Height="65"/>
            <RowDefinition Height="65"/>
            <RowDefinition Height="65"/>
            <RowDefinition Height="65"/>
            <RowDefinition Height="65"/>
            <RowDefinition Height="65"/>
            <RowDefinition />
            <RowDefinition Height="65"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="65"/>
            <ColumnDefinition />
            <ColumnDefinition Width="65"/>
            <ColumnDefinition Width="65"/>
            <ColumnDefinition Width="65"/>
            <ColumnDefinition />
            <ColumnDefinition Width="65"/>
        </Grid.ColumnDefinitions>
        <gm:EquipmentButton Grid.Column="0" Grid.Row="0" DataContext="{Binding Path=Items[0]}" />
        <gm:EquipmentButton Grid.Column="0" Grid.Row="1" DataContext="{Binding Path=Items[1]}" />
        <gm:EquipmentButton Grid.Column="0" Grid.Row="2" DataContext="{Binding Path=Items[2]}" />
        <gm:EquipmentButton Grid.Column="0" Grid.Row="3" DataContext="{Binding Path=Items[14]}" />
        <gm:EquipmentButton Grid.Column="0" Grid.Row="4" DataContext="{Binding Path=Items[4]}" />
        <gm:EquipmentButton Grid.Column="0" Grid.Row="5" DataContext="{Binding Path=Items[3]}" />
        <gm:EquipmentButton Grid.Column="0" Grid.Row="6" DataContext="{Binding Path=Items[18]}" />
        <gm:EquipmentButton Grid.Column="0" Grid.Row="7" DataContext="{Binding Path=Items[8]}" />
        
        <gm:EquipmentButton Grid.Column="2" Grid.Row="10" DataContext="{Binding Path=Items[15]}" />
        <gm:EquipmentButton Grid.Column="3" Grid.Row="10" DataContext="{Binding Path=Items[16]}" />
        <gm:EquipmentButton Grid.Column="4" Grid.Row="10" DataContext="{Binding Path=Items[17]}" />

        <gm:EquipmentButton Grid.Column="6" Grid.Row="0" DataContext="{Binding Path=Items[9]}" />
        <gm:EquipmentButton Grid.Column="6" Grid.Row="1" DataContext="{Binding Path=Items[5]}" />
        <gm:EquipmentButton Grid.Column="6" Grid.Row="2" DataContext="{Binding Path=Items[6]}" />
        <gm:EquipmentButton Grid.Column="6" Grid.Row="3" DataContext="{Binding Path=Items[7]}" />
        <gm:EquipmentButton Grid.Column="6" Grid.Row="4" DataContext="{Binding Path=Items[10]}" />
        <gm:EquipmentButton Grid.Column="6" Grid.Row="5" DataContext="{Binding Path=Items[11]}" />
        <gm:EquipmentButton Grid.Column="6" Grid.Row="6" DataContext="{Binding Path=Items[12]}" />
        <gm:EquipmentButton Grid.Column="6" Grid.Row="7" DataContext="{Binding Path=Items[13]}" />
		<StackPanel Grid.Column="1" Grid.ColumnSpan="5" Grid.RowSpan="9" Margin="8,8">
			<TextBox Text="{Binding Path=Name }" IsReadOnly="True"  />
			<TextBox Text="{Binding Path=Realm }" IsReadOnly="True" />
		</StackPanel>
	</Grid>
</UserControl>
